<template>
  <el-aside width="200px">
    <el-menu default-active="1" router>
      <el-menu-item v-for="(item, index) in menuItems" :key="index" :index="item.path">
        <i :class="item.icon"></i>
        <span>{{ item.text }}</span>
      </el-menu-item>
    </el-menu>
  </el-aside>
</template>
<script>
export default {
  name: 'MyAside',
  data() {
    return {
      menuItems: [
        { path: "/", icon: "el-icon-house", text: "首页" },
        { path: "/studentList", icon: "el-icon-info", text: "学生管理", oder: 1},
        { path: "/teacherList", icon: "el-icon-info", text: "教师管理", oder: 2 },
        { path: "/courseList", icon: "el-icon-info", text: "课程管理", oder: 3 },
        { path: "/classList", icon: "el-icon-info", text: "班级管理", oder: 4 },
        { path: "/StudentCourseList", icon: "el-icon-info", text: "选课管理", order: 5},
        { path: "/dbManagementList", icon: "el-icon-info", text: "数据库管理", order: 6 },
        { path: "/oaMessageList", icon: "el-icon-info", text: "消息管理", order: 7 },
        { path: "/about", icon: "el-icon-info", text: "字典表管理", order: 8 },
        { path: "/SystemUserList", icon: "el-icon-info", text: "用户管理", order: 9 },
        { path: "/roleList", icon: "el-icon-info", text: "角色管理", order: 10 },
        { path: "/about", icon: "el-icon-info", text: "菜单管理", order: 11 },
        { path: "/about", icon: "el-icon-info", text: "配置管理", order: 12 },
        { path: "/about", icon: "el-icon-info", text: "关于我们", order: 13 },
        { path: "/contact", icon: "el-icon-phone", text: "联系我们12", order: 14 }
      ],
    };
  },
};
</script>

<style scoped>
.el-aside {
  background-color: #fffff0;
  height: 100%;
}
</style>